package com.yami.shop.bean.enums;

public enum InteractPowerEnum {
    
    ONESELF(0, "仅自己"),

    EVERYONE(1, "所有人"),

    FOLLOW(2, "我关注的人"),

    FANS(3, "我的粉丝")
    
    ;
    
    private Integer type;
    
    private String info;
    
    public Integer getType(){
        return type;
    }
    
    public String getInfo(){
        return info;
    }

    InteractPowerEnum(Integer type, String info){
        this.type = type;
        this.info = info;
    }
    
    public static InteractPowerEnum instance(Integer type) {
        InteractPowerEnum[] values = values();
        for (InteractPowerEnum anEnum :values){
            if (anEnum.getType().equals(type)) {
                return anEnum;
            }
        }
        return null;
    }
    
    
    
    
}
